﻿using System.Collections.Generic;
using System.Linq;
using ETModel;

namespace ETHotfix {
    /// <summary>
    /// 
    /// </summary>
    [ObjectSystem]
    public class GatePlayersComponentAwakeSystem : AwakeSystem<GatePlayersComponent> {
        public override void Awake(GatePlayersComponent self) {
            self.Awake();
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [ObjectSystem]
    public class GatePlayersComponent_GatePlayerDestroy : DestroySystem<GatePlayer> {
        public override void Destroy(GatePlayer self) {
            //移除项即可,不用重复dispose
            Game.Scene.GetComponent<GatePlayersComponent>()?.RemoveNoDispose(self.InstanceId);
        }
    }
    /// <summary>
    /// 在Gate服务器上管理Player的组件,热更层框架会自动加到场景
    /// </summary>
    public class GatePlayersComponent : BaseEntityMgrComponent<GatePlayer> {
    }
}